package kr.nexmore.slmsample2.dao;

import java.util.List;

import kr.nexmore.slmsample2.util.MyBatisConnectionFactory;
import kr.nexmore.slmsample2.vo.TagVo;

import org.apache.ibatis.session.SqlSession;

public class MyTagDao {

	public List<TagVo> select() {

		List<TagVo> result = null;

		SqlSession session = MyBatisConnectionFactory.openSession();
		

		result = session.selectList("Tag.getListTag");


		return result;
	}

	public void insert(TagVo vo) {
		SqlSession session = MyBatisConnectionFactory.openSession();

		int pk = session.insert("Board.insertHandi", vo);
		session.commit();

	}

}
